package cn.koala.key.receipt.service.impl;

import cn.koala.key.api.KeyManagementApi;
import cn.koala.key.common.feign.FeignUtils;
import cn.koala.key.entity.BorrowOrderAddressee;
import cn.koala.key.receipt.service.BorrowOrderAddresseeService;
import cn.seed.common.core.Result;
import org.springframework.stereotype.Service;

@Service
public class BorrowOrderAddresseeServiceImpl implements BorrowOrderAddresseeService {

    @Override
    public Result<BorrowOrderAddressee> getByOrderNo(String orderNo) {
        return FeignUtils.getHttpApi(KeyManagementApi.class).selectByOrderNo(orderNo);
    }

    @Override
    public Result edit(BorrowOrderAddressee borrowOrderAddressee) {
        return FeignUtils.getHttpApi(KeyManagementApi.class).editBorrowOrderAddressee(borrowOrderAddressee);
    }

}
